package org.example.handle;

import lombok.Data;

@Data
public class AuthToken {

    private String accessToken;
    /**
     * 秒为单位
     */
    private long expireAt;

    public boolean hasValidToken() {
        return null != accessToken && !"".equals(accessToken.trim()) && System.currentTimeMillis() / 1000 <= expireAt;
    }

}
